<%% @layout_id = "<%=@layout_id%>".to_sym %>

<%= Modular.layout(@layout_id).render %>

<%% 
    layout = '<%=@original_layout%>'
    #Old one is @_content_for
    @view_flow.content[:layout] = self.output_buffer
    self.output_buffer = render(:file => "layouts/#{layout}")
 %>